package maa.action.all;

import maa.action.Action;
import maa.action.ActionResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class ViewAction implements Action {
    private String view;

    public ViewAction(String view) {
        this.view = view;
    }

    @Override
    public ActionResult execute(HttpServletRequest req, HttpServletResponse resp) throws Exception {
        return new ActionResult(view);
    }
}
